import { createStore } from "vuex";

export default createStore({
  state: {
    userdata: [], //存储多个用户
  },
  mutations: {
    adduser: function (state, obj) {
      state.userdata.push(obj);
    },
  },
  actions: {},
  modules: {},
});
